package com.iot.enums;

public enum ApplyContentEnum {
    CHINESE(0,"$X申请关注你"),
    TRADITIONAL_CHINESE(1,"$X申請關注你"),
    ENGLISH(2,"$X Apply to Follow You"),
    FRENCH(3,"$X Applicer à vous suivre"),
    GERMAN(4,"$X Bewerben Sie sich, um Ihnen zu folgen"),
    ITALIAN(5,"$X Applicazione per seguirti"),
    JAPANESE(6,"$Xあなたをフォローしてください"),
    POLISH(7,"$X wniosek o śledztwo"),
    PORTUGUESE(8,"$X Inscrição para seguir você"),
    RUSSIAN(9,"$X подать заявку на то, чтобы следить за вами"),
    SPANISH(10,"$X Solicitud para seguirte"),
    ARABIC(11,"$X التقدم لمتابعتك"),
    GREEK(12,"$X αίτηση για να σας παρακολουθήσετε"),
    KOREAN(13,"$X 지원 지원"),
    THAI(14,"$X สมัครติดตามคุณ"),
    PERSIAN(15,"$X درخواست دنبال شما را دارد"),
    TURKISH(16,"$X Sizi takip etmek için başvurun"),
    VIETNAMESE(17,"$X Đăng ký theo dõi bạn"),
    DUTCH(18,"$X aanvraag om u te volgen"),
    DANISH(19,"$X ansøgning om at følge dig"),
    CZECH(20,"$X Aplikace pro následování vás"),
    SWEDISH(21,"$X ansök om att följa dig"),
    FINNISH(22,"$X haku kiinnittämään sinua"),
    BULGARIAN_LANGUAGE(23,"$X Кандидатстване за последване на вас"),
    UKRAINIAN(24,"$X заявка для вас"),
    HEBREW(25,"$X יישום להתמקד בך");

    private Integer code;

    private String content;


    ApplyContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ApplyContentEnum value : ApplyContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
